## select the highest score
#	result_f=open("results.txt")
#	highest_score=0
#	for line in result_f:
#		(name,score)=line.split()
#		if float(score) >= highest_score:
#			highest_score=float(score)
#	print("The highest score was " + str(highest_score))
#
#	result_f.close()

## sort by score
scores=[]
result_f=open("results.txt")
for line in result_f:
	(name,score)=line.split()
	scores.append(float(score))
result_f.close()
scores.sort(reverse=True)
print("The top scores were:")
print(scores[0])
print(scores[1])
print(scores[2])
